package com.itheima.sh.b_test_02;

public class Phone {
    //成员变量
    private String brand;//品牌
    private int price;//价格
    private String colour;//颜色

    //无参构造
    public Phone() {
    }
    //有参构造
    public Phone(String brand, int price, String colour) {
        this.brand = brand;
        this.price = price;
        this.colour = colour;
    }
    //set/get方法

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }
}
